package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.activity.yanghuke.zuoyeshangbao.bean.WorkStatusBean;

/**
 * Created by admin on 2018/9/9.
 */

public class WorkStatusAdapter extends BaseQuickAdapter<WorkStatusBean.WorkList> {

    public WorkStatusAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_fiew_zuoyewanchengliang_from_layout_new;
    }

    @Override
    protected void convert(BaseViewHolder holder, WorkStatusBean.WorkList item) {
        holder.setText(R.id.tv_xh, holder.getPosition() + 1 + "");
        holder.setText(R.id.tv_name, item.getWorkName());
        holder.setText(R.id.tv_dw, item.getUnit());
        holder.setText(R.id.tv_wcl, item.getRealFinishQty());
    }
}
